﻿<UserControl
    x:Class="Microsoft.Media.CaptureClient.Sample.SettingsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Microsoft.Media.CaptureClient.Sample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400"
    d:DesignWidth="200">

    <StackPanel>

        <TextBlock Text="Video Source:" Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,5" TextWrapping="Wrap"/>
        <ComboBox x:Name="videoSources" IsEnabled="{Binding AreChangesAllowed}" AutomationProperties.Name="Video Sources" DisplayMemberPath="Name"/>
        <TextBlock Text="Audio Source:" Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,5" TextWrapping="Wrap"/>
        <ComboBox x:Name="audioSources" IsEnabled="{Binding AreChangesAllowed}" AutomationProperties.Name="Audio Sources" DisplayMemberPath="Name"/>
        <TextBlock Text="Channel Ingest URL:" Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,5" TextWrapping="Wrap"/>
        <TextBox x:Name="textIngest" IsEnabled="{Binding AreChangesAllowed}" AutomationProperties.Name="Channel Ingest URL" Text="{Binding IngestUrl, Mode=TwoWay}"/>

        <StackPanel>
            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,5" TextWrapping="Wrap" Text="Multiple or single video bitrate(s):" />

            <RadioButton x:Name="RadioButtonMultiResolution" IsEnabled="{Binding AreChangesAllowed}" AutomationProperties.Name="Multiple resolutions &amp; bitrates" Content="Multiple resolutions &amp; bitrates" Checked="RadioButtonMultiResolution_Checked"/>
            <RadioButton x:Name="RadioButtonMultiBitrate" IsEnabled="{Binding AreChangesAllowed}" AutomationProperties.Name="Multiple bitrates" Content="Multiple bitrates" Checked="RadioButtonMultiBitrate_Checked"/>
            <RadioButton x:Name="RadioButtonSingleBitrate" IsEnabled="{Binding AreChangesAllowed}" AutomationProperties.Name="Single bitrate" Content="Single bitrate" Checked="RadioButtonSingleBitrate_Checked"/>
        </StackPanel>

        <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,0,0,25" TextWrapping="Wrap" Text="Note: multiple bitrates produce a better quality experience for vieweres but requires more processing power on the recording device. Low powered recording devices should choose single bitrate." />

        <!--<TextBox Header="Stream name:" IsEnabled="{Binding AreChangesAllowed}" Text="{Binding StreamId, Mode=TwoWay}"/>-->

    </StackPanel>
</UserControl>
